var welcomVm = new Vue({
	el:"#ServerInformation",
	data:{
		javaVersion:'',
		osName:'',
		userHome:'',
		userDir:'',
		serverIP:'',
		clientIP:'',
		webVersion:'',
		cpuNum:'',
		totalMemory:'',
		freeMemory:'',
		maxMemory:'',
		
		username:'',
		currentTime:'',
		sessionNum:'',
		sessionId:'',
		errMsg:'',
	},
	beforeCreate:function(){
		$.ajax({
			type:"POST",
			url:"index/welcome",
			dataType:"json",
			success:function(result){
				if(result.status == 200){
					welcomVm.javaVersion = result.data.javaVersion;
					welcomVm.osName = result.data.osName;
					welcomVm.userHome = result.data.userHome;
					welcomVm.userDir = result.data.userDir;
					welcomVm.serverIP = result.data.serverIP;
					welcomVm.clientIP = result.data.clientIP;
					welcomVm.webVersion = result.data.webVersion;
					welcomVm.cpuNum = result.data.cpuNum;
					welcomVm.freeMemory = result.data.freeMemory;
					welcomVm.totalMemory = result.data.totalMemory;
					welcomVm.maxMemory = result.data.maxMemory;
					welcomVm.username = result.data.username;
					welcomVm.sessionNum = result.data.sessionNum;
					welcomVm.sessionId = result.data.sessionId;
					welcomVm.currentTime = result.data.currentTime;
				}
				else{
					welcomVm.errMsg=result.msg;
				}
			}
		})
	}
	
	
	
})